package com.djhu.freepartner.bean;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;

/**
 * <p>
 * 登录记录
 * </p>
 *
 * @author zw
 * @since 2018-08-01
 */
@TableName("partner_login_record")
public class PartnerLoginRecord extends Model<PartnerLoginRecord> {

    private static final long serialVersionUID = 1L;

    /**
     * pk
     */
    @TableId(type=IdType.ID_WORKER_STR)
    private String recordid;
    /**
     * 用户id
     */
    private String userid;
    /**
     * 客户端类型
     */
    private String clienttype;
    /**
     * 浏览器
     */
    private String useragent;
    /**
     * ip
     */
    private String ip;
    /**
     * 地址
     */
    private String address;
    /**
     * 运营商
     */
    private String operator;
    /**
     * 经度
     */
    private String longitude;
    /**
     * 纬度
     */
    private String latitude;
    /**
     * 登录时间 
     */
    private String logindate;


    public String getRecordid() {
        return recordid;
    }

    public void setRecordid(String recordid) {
        this.recordid = recordid;
    }

    public String getUserid() {
        return userid;
    }

    public void setUserid(String userid) {
        this.userid = userid;
    }

    public String getClienttype() {
        return clienttype;
    }

    public void setClienttype(String clienttype) {
        this.clienttype = clienttype;
    }

    public String getUseragent() {
        return useragent;
    }

    public void setUseragent(String useragent) {
        this.useragent = useragent;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getOperator() {
        return operator;
    }

    public void setOperator(String operator) {
        this.operator = operator;
    }

    public String getLongitude() {
        return longitude;
    }

    public void setLongitude(String longitude) {
        this.longitude = longitude;
    }

    public String getLatitude() {
        return latitude;
    }

    public void setLatitude(String latitude) {
        this.latitude = latitude;
    }

    public String getLogindate() {
        return logindate;
    }

    public void setLogindate(String logindate) {
        this.logindate = logindate;
    }

    @Override
    protected Serializable pkVal() {
        return this.recordid;
    }

    @Override
    public String toString() {
        return "PartnerLoginRecord{" +
        ", recordid=" + recordid +
        ", userid=" + userid +
        ", clienttype=" + clienttype +
        ", useragent=" + useragent +
        ", ip=" + ip +
        ", address=" + address +
        ", operator=" + operator +
        ", longitude=" + longitude +
        ", latitude=" + latitude +
        ", logindate=" + logindate +
        "}";
    }
}
